package com.disease.api.service.service;

import com.disease.api.service.entity.ICD;
import com.disease.api.service.entity.Region;
import com.disease.api.service.mapper.ICDMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Arrays;
import java.util.List;

@Slf4j
@Service
public class ICDService {

    @Autowired
    ICDMapper icdMapper;

    /**
     * 根据名称查询地区信息
     * @param name
     * @return
     */
    public List<ICD> queryICDCodeByName(String name){
        return icdMapper.findCodeByName(name);
    }
}
